/**
 * 不是真实的 webpack 配置，仅为兼容 webstorm 和 intellij idea 代码跳转
 * ref: https://github.com/umijs/umi/issues/1109#issuecomment-423380125
 */
// api: resolve(__dirname, './src/services/'),
//     components: resolve(__dirname, './src/components'),
//     config: resolve(__dirname, './src/utils/config'),
//     models: resolve(__dirname, './src/models'),
//     services: resolve(__dirname, './src/services'),
//     themes: resolve(__dirname, './src/themes'),
//     utils: resolve(__dirname, './src/utils'),
module.exports = {
    resolve: {
        alias: {
            '@': require('path').resolve(__dirname, 'src'),
            'api': require('path').resolve(__dirname, './src/services/'),
            'components': require('path').resolve(__dirname, './src/components'),
            'config': require('path').resolve(__dirname, './src/utils/ config'),
            'models': require('path').resolve(__dirname, './src/models'),
            'services': require('path').resolve(__dirname, './src/services'),
            'themes': require('path').resolve(__dirname, './src/themes'),
            'utils': require('path').resolve(__dirname, './src/utils'),
        },
    },
}
;
